import request from '@/utils/request'

// 查询系统城市设置列表
export function listCity (query) {
  return request({
    url: '/platform/city/list',
    method: 'get',
    params: query
  })
}

// 查询系统城市设置详细
export function getCity (cityId) {
  return request({
    url: '/platform/city/' + cityId,
    method: 'get'
  })
}

// 新增系统城市设置
export function addCity (data) {
  return request({
    url: '/platform/city',
    method: 'post',
    data: data
  })
}

// 修改系统城市设置
export function updateCity (data) {
  return request({
    url: '/platform/city',
    method: 'put',
    data: data
  })
}

// 删除系统城市设置
export function delCity (cityId) {
  return request({
    url: '/platform/city/' + cityId,
    method: 'delete'
  })
}
